CC = gcc
CFLAGS = -Wall

CSTD = c99
CFLAGS += -std=$(CSTD)
SFLAGS = -S
COMPILE = -c

PROG = tp0

BASE=octal.c ParserParametros.c main.c utiles.c

all: $(BASE)
	$(CC) $(COMPILE) $(BASE)
	$(CC) $(CFLAGS) $(BASE) -o $(PROG)
	
	
mips: $(BASE)
	$(CC) $(CFLAGS) $(SFLAGS) octal.c -o octal.S
	$(CC) $(CFLAGS) $(SFLAGS) ParserParametros.c -o ParserParametros.S
	$(CC) $(CFLAGS) $(SFLAGS) utiles.c -o utiles.S
	$(CC) $(CFLAGS) $(SFLAGS) main.c -o main.S


clean:
	rm -rf *.o $(PROG)
